package com.woniuxy.reservation.client.takenumclient;

import com.woniuxy.reservation.client.param.SearchTakeNumByConditionParam;
import com.woniuxy.reservation.client.result.TakeNumClientDto;
import common.WoniuPage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

import java.util.List;

@FeignClient(contextId = "takeNumQueryClient",name = "reservation")
public interface TakeNumQueryClient {
    @GetMapping("/searchTakeNumByCondition")
    public Result<WoniuPage<TakeNumClientDto>> searchTakeNumByCondition(@SpringQueryMap SearchTakeNumByConditionParam param);

    @GetMapping("/searchTakeNumByTableTypeId")
    public Result<List<TakeNumClientDto>> searchTakeNumByTableTypeId(@RequestParam("storeId")Integer storeId, @RequestParam("tableTypeId")Integer tableTypeId);
}
